package com.lrkj.notice.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息关联用户对象 notice_site_message_user
 *
 * @author yajun_ren
 * @date 2022-09-07
 */
@Data
public class NoticeSiteMessageUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 消息ID */
    private String messageId;

    /** 接收人ID */
    private String receiveId;

    /** 已读/未读 */
    private String haveRead;

    /** 已读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readTime;

    private String title;

    private String content;

    private String senderName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date senderTime;

    private String messageType;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("messageId", getMessageId())
            .append("receiveId", getReceiveId())
            .append("haveRead", getHaveRead())
            .append("readTime", getReadTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
